package com.xm.xmapp.adapter;

import java.util.ArrayList;

import android.app.Activity;
import android.widget.TextView;

import com.xm.xmapp.R;
import com.xm.xmapp.base.MyBaseAdapter;
import com.xm.xmapp.base.ViewHolder;
import com.xm.xmapp.response.bean.ResponseMoneyListRefund;

public class BankMoneyAdapter extends MyBaseAdapter<ResponseMoneyListRefund> {

	private int payment_type;

	public BankMoneyAdapter(ArrayList<ResponseMoneyListRefund> list, Activity activity, int layoutId) {
		super(list, activity, layoutId);
	}

	public void setPayment_type(int payment_type) {
		this.payment_type = payment_type;
	}

	@Override
	public void setValues(ViewHolder holder, ResponseMoneyListRefund t, int position) {
		TextView tv_money = (TextView) holder.getView(R.id.tv_money);
//		TextView tv_type = (TextView) holder.getView(R.id.tv_type);
		TextView tv_time = (TextView) holder.getView(R.id.tv_time);
		tv_money.setText(t.amount + "元");
		tv_time.setText(t.add_time);
//		switch (payment_type) {
//		case 1:
//			tv_type.setText("微信公众号");
//			break;
//		case 2:
//			tv_type.setText("支付宝");
//			break;
//		case 6:
//			tv_type.setText("微信");
//			break;
//
//		default:
//			break;
//		}
	}

}
